package com.cos.studentsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cos
 * @since 2022-03-29
 */
@ApiModel("管理员数据对象")
public class RcAdmin extends Model<RcAdmin> {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("管理员主键")
    @TableId(value = "admin_id", type = IdType.AUTO)
    private Integer adminId;
    @ApiModelProperty("管理员名称")
    private String adminUsername;
    @ApiModelProperty("管理员密码")
    private String adminPassword;
    @ApiModelProperty("管理员权限")
    private Integer adminPrivilege;

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }
    public String getAdminUsername() {
        return adminUsername;
    }

    public void setAdminUsername(String adminUsername) {
        this.adminUsername = adminUsername;
    }
    public String getAdminPassword() {
        return adminPassword;
    }

    public void setAdminPassword(String adminPassword) {
        this.adminPassword = adminPassword;
    }
    public Integer getAdminPrivilege() {
        return adminPrivilege;
    }

    public void setAdminPrivilege(Integer adminPrivilege) {
        this.adminPrivilege = adminPrivilege;
    }

    @Override
    protected Serializable pkVal() {
        return this.adminId;
    }

    @Override
    public String toString() {
        return "RcAdmin{" +
            "adminId=" + adminId +
            ", adminUsername=" + adminUsername +
            ", adminPassword=" + adminPassword +
            ", adminPrivilege=" + adminPrivilege +
        "}";
    }
}
